package cn.tedu.kcircle.common.po;

import cn.tedu.kcircle.common.function.PageQuery;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class DefaultPageQuery implements PageQuery {
    public static final Integer DEFAULT_PAGE_NUM=1;
    public static final Integer DEFAULT_PAGE_SIZE=10;

    private Integer pageNum;
    private Integer pageSize;
    public DefaultPageQuery(){
        this.pageNum=DEFAULT_PAGE_NUM;
        this.pageSize=DEFAULT_PAGE_SIZE;
    }
    public DefaultPageQuery(Integer pageNum){
        this.pageNum=pageNum;
    }
    public DefaultPageQuery(Integer pageNum,Integer pageSize){
        this.pageNum=pageNum;
        this.pageSize=pageSize;
    }

}
